const dragStore = useDrag();
export function deleteFn(e: any, item: IStdORender) {
  if (dragStore.clickParent) {
    let { parent, iteindex } = dragStore.clickParent;
    if (parent) return parent.childrens.splice(iteindex, 1);
  }
  let index = dragStore.renderData.findIndex((ite) => {
    return item.id == ite.id;
  });
  dragStore.renderData.splice(index, 1);
}
